<%@ page import="com.neuedu.entity.User" %>
<%@ page import="java.text.SimpleDateFormat" %>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <title>修改</title>
</head>
<body>
<%
    User user = (User) request.getAttribute("user");
%>
<h3>雇员添加</h3>
<form action='<%=request.getContextPath()%>/user' method='post'>
    <input type='hidden' name='_type' value='update'/>

    userid:<input type='text' name='userid' value="<%=user.getUserid()%>" /> <br>
     username:<input type='text' name='username' value="<%=user.getUsername()%>" /><br>
     password:<input type='text' name='password' value="<%=user.getPassword()%>" /><br>
     expire:<input type='text' name='expire' value="<%=user.getExpire() == null? null:new SimpleDateFormat("yyyy-MM-dd HH:mm:ss").format(user.getExpire())%>" /><br>
     nickname:<input type='text' name='nickname' value="<%=user.getNickname()%>" /><br>
    lastlogin:<input type='date' name='expire' value="<%=user.getLastlogin() == null? null:new SimpleDateFormat("yyyy-MM-dd HH:mm:ss").format(user.getLastlogin())%>" /><br>
     sal:<input type='text' name='sal' value="<%=user.getSal()%>" /><br>

        <input type='submit' value='修改员工' />

</form>

</body>
</html>
